package top.vanchor.myblog2back.service;

import top.vanchor.myblog2back.entity.BlogComment;
import com.baomidou.mybatisplus.extension.service.IService;

import java.util.List;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author Ding
 * @since 2021-11-12
 */
public interface IBlogCommentService extends IService<BlogComment> {

    List<BlogComment> getCommentTreeByBlogId(int blogId,Integer uId);

    int toPublishComment(BlogComment blogComment);

    int getCommentNumByBlogId(Integer blogId);

    int toDelCommentById(int comment_id);

    int toLikeComment(int commentId, int uId, int type);
}
